<template>
  <div class="followBox">
      <!-- 关注页面 -->
    <div class="title">
        <p>我关注的人(4)</p>
    </div>
    <div class="fllow-c">
        <div class="fllow-c-list" v-for="(item,index) in fllowList" :key="index">
            <div class="fllow-img">
                <img :src="item.img" alt="">
            </div>
            <div class="fllow-countent">
                <p class="fllow-title">{{item.title}}</p>
                <p class="fllow-text">{{item.text}}</p>
            </div>
        </div>
    </div>
  </div>
</template>

<script>
import api from '../../api'
export default {
    data(){
        return {
            fllowList:[]
        }
    },
    mounted(){
        api.getFollow().then(res => {
            //console.log(res.data.followList);
            this.fllowList = res.data.followList
        })
    }
}
</script>

<style>
.followBox{
    width: 900px;
    height: 780px;
    background: #fff;
}
.followBox .title{
    height: 50px;
    width: 100%;
    line-height: 50px;
    color: #999;
    border-bottom: 1px solid #ccc;
    text-align: left;
}
.followBox .title>p{
    padding-left: 50px;
}
.fllow-c{
    padding:10px;
}
.fllow-c-list{
    width: 254px;
    height: 60px;
    padding: 15px;
    background: #F5F5F5;
    float: left;
    margin: 4px;
}
.fllow-img{
    width: 60px;
    height: 60px;
    float: left;
}
.fllow-img>img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.fllow-countent{
    float: left;
    width: 184px;
    margin-left: 10px;
    text-align: left;
}
.fllow-countent>p:last-child{
    margin-top: 10px;
    font-size: 14px;
}
</style>